package jp.tuyano.sample.server.entity;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Employee {
    
    /** 従業員ID */
    @PrimaryKey
    private String id;
    
    /** 氏 */
    @Persistent
    private String lastName;
    
    /** 名 */
    @Persistent
    private String firstName;
    
    /** 性別 */
    @Persistent
    private String sex;
    
    /** 入社日 */
    @Persistent
    private String enterDate;
    
    public Employee(String id, String lastName, String firstName, String sex,
            String enterDate) {
        this.id = id;
        this.lastName = lastName;
        this.firstName = firstName;
        this.sex = sex;
        this.enterDate = enterDate;
    }
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLastName() {
        return lastName;
    }

    public void setlastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirName() {
        return firstName;
    }

    public void setLastName(String firstName) {
        this.firstName = firstName;
    }

    
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(String enterDate) {
        this.enterDate = enterDate;
    }
}
